package com.jsh.erp.datasource.mappers;

import com.jsh.erp.datasource.entities.Order;
import com.jsh.erp.datasource.entities.OrderVoList;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderMapperEx {
    List<OrderVoList> selectByConditionOrderVO(
            @Param("khxx") String khxx,
            @Param("beizhu") String beizhu,
            @Param("guige") String guige,
            @Param("beginTime") String beignTime,
            @Param("endTime") String endTime,
            @Param("ddNum") String ddNum,
            @Param("type") String type,
            @Param("status") String status,
            @Param("jingshouren") String jingshouen,
            @Param("offset") Integer offset,
            @Param("rows") Integer rows);
    Order selectByDdNum(
            @Param("ddNum") String ddnum);
    long countByOrder(
            @Param("khxx") String khxx,
            @Param("beizhu") String beizhu,
            @Param("guige") String guige,
            @Param("beginTime") String beignTime,
            @Param("endTime") String endTime,
            @Param("jingshouren") String jingshouen,
            @Param("ddNum") String ddNum,
            @Param("type") String type,
            @Param("status") String status);
    List<OrderVoList> findAllVO(
            @Param("khxx") String khxx,
            @Param("beizhu") String beizhu,
            @Param("guige") String guige,
            @Param("ddNum") String ddNum,
            @Param("beginTime") String beignTime,
            @Param("endTime") String endTime,
            @Param("type") String type,
            @Param("status") String status);
    int batchDeleteOrderByIds(@Param("updateTime") Date updateTime, @Param("updater") Long updater, @Param("ids") String ids[]);
    int batchChuhuoByIds(@Param("ids") String ids[], @Param("status") String status,@Param("chuhuoren") String chuhuoren,@Param("sjchriq") String sjchriq);
}